<?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:64:"D:\douzhi\PHP\ask\public/../application/home\view\user\post.html";i:1653561077;s:51:"D:\douzhi\PHP\ask\application\home\view\layout.html";i:1653012221;s:56:"D:\douzhi\PHP\ask\application\home\view\common\meta.html";i:1652757039;s:58:"D:\douzhi\PHP\ask\application\home\view\common\script.html";i:1652755224;s:58:"D:\douzhi\PHP\ask\application\home\view\common\header.html";i:1653118101;s:56:"D:\douzhi\PHP\ask\application\home\view\common\menu.html";i:1653560695;s:58:"D:\douzhi\PHP\ask\application\home\view\common\footer.html";i:1652754708;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<!-- 引用样式 -->
		<meta charset="utf-8">
<title>ask论坛</title>
<link rel="stylesheet" href="/static/home/layui/css/layui.css">
<link rel="stylesheet" href="/static/home/css/global.css">
<link rel="stylesheet" href="/static/home/css/common.css">

		<!-- 引入js -->
		<script src="/static/home/layui/layui.js"></script>
<script>
layui.cache.page = '';
layui.cache.user = {
  username: '游客'
  ,uid: -1
  ,avatar: '/static/home/images/avatar/00.jpg'
  ,experience: 83
  ,sex: '男'
};
layui.config({
  version: "3.0.0"
  ,base: '/static/home/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>
	</head>
	<body>
		<!-- 引用头部 -->
		<div class="fly-header layui-bg-black">
  <div class="layui-container">
    <a class="fly-logo" href="<?php echo url('home/index/index'); ?>">
      <img src="/static/home/images/logo.png" alt="layui">
    </a>
    
    <ul class="layui-nav fly-nav-user">
      
      <!-- 登入后的状态 -->
      <?php if(\think\Request::instance()->action() != 'login' && \think\Request::instance()->action() != 'register'): if(\think\Cookie::get('LoginUser')): ?>
			  <li class="layui-nav-item">
				<a class="fly-nav-avatar" href="javascript:;">
				  <cite class="layui-hide-xs"><?php echo $LoginUser['nickname']; ?></cite>
				  <?php if($LoginUser['auth'] == 1): ?>
				  <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息：<?php echo $LoginUser['nickname']; ?>"></i>
				  <?php else: ?>
				  <span style="color: #c00;"> 未认证 </span>
				  <?php endif; ?>
				  <i class="layui-badge fly-badge-vip layui-hide-xs">VIP<?php echo $LoginUser['vip']; ?></i>
				  <img src="<?php echo $LoginUser['avatar_cdn']; ?>">
				</a>
				<dl class="layui-nav-child">
				  <dd><a href="<?php echo url('home/user/profile'); ?>"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
				  <dd><a href="user/message.html"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a></dd>
				  <dd><a href="user/home.html"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a></dd>
				  <hr style="margin: 5px 0;">
				  <dd><a href="<?php echo url('home/index/loginout'); ?>" style="text-align: center;">退出</a></dd>
				</dl>
			  </li>
		 <?php else: ?>
			 <!-- 未登入的状态 -->
			 <li class="layui-nav-item">
			   <a class="iconfont icon-touxiang layui-hide-xs" href="user/login.html"></a>
			 </li>
			 <li class="layui-nav-item">
			   <a href="<?php echo url('home/index/login'); ?>">登入</a>
			 </li>
			 <li class="layui-nav-item">
			   <a href="<?php echo url('home/index/register'); ?>">注册</a>
			 </li>
			 <!-- <li class="layui-nav-item layui-hide-xs">
			   <a href="/app/qq/" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" title="QQ登入" class="iconfont icon-qq"></a>
			 </li>
			 <li class="layui-nav-item layui-hide-xs">
			   <a href="/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" title="微博登入" class="iconfont icon-weibo"></a>
			 </li> -->
		 <?php endif; endif; ?>
    </ul>
  </div>
</div>
		<!-- 引入内容部分 -->
		<style type="text/css">
	.layui-tab{
		margin-left: 215px;
	}
</style>
<div class="layui-container fly-marginTop fly-user-main">
    
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
    <li class="layui-nav-item">
        <a href="<?php echo url('home/user/index',['userid' => $LoginUser['id']]); ?>">
            <i class="layui-icon">&#xe609;</i>
            我的主页
        </a>
    </li>
    <li class="layui-nav-item <?php echo $navTitle=='基本资料'?'layui-this' : ''; ?>">
        <a href="<?php echo url('home/user/profile'); ?>">
            <i class="layui-icon">&#xe620;</i>
            基本资料
        </a>
    </li>
    <li class="layui-nav-item <?php echo $navTitle=='积分消费记录'?'layui-this' : ''; ?>">
        <a href="<?php echo url('home/user/record'); ?>">
            <i class="layui-icon">&#xe612;</i>
            积分消费记录
        </a>
    </li>
    <li class="layui-nav-item <?php echo $navTitle=='收藏记录'?'layui-this' : ''; ?>">
        <a href="<?php echo url('home/user/collect'); ?>">
            <i class="layui-icon">&#xe612;</i>
            收藏记录
        </a>
    </li>
	<li class="layui-nav-item <?php echo $navTitle=='我的帖子'?'layui-this' : ''; ?>">
	    <a href="<?php echo url('home/user/post'); ?>">
	        <i class="layui-icon">&#xe612;</i>
	        我的帖子
	    </a>
	</li>
    <li class="layui-nav-item">
        <a href="message.html">
            <i class="layui-icon">&#xe611;</i>
            我的消息
        </a>
    </li>
</ul>

<div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
</div>
<div class="site-mobile-shade"></div>

<div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
</div>
<div class="site-mobile-shade"></div>
	
	<div class="layui-tab layui-tab-brief" lay-filter="user">
	      <ul class="layui-tab-title" id="LAY_mine">
	        <li data-type="mine-jie" class="layui-this">
				<a href="<?php echo url('home/User/post'); ?>">全部</a>
	      </ul>
	      <div class="layui-tab-content" style="padding: 20px 0;">
	        <div class="layui-tab-item layui-show">
	          <ul class="mine-view jie-row">
				<?php foreach($PostList as $item): ?>
				<li>
					<?php if($item['state'] == 1): ?>
						<span class="fly-jing">置顶</span>
					<?php elseif($item['state'] == 2): ?>
						<span class="fly-jing">精华</span>
					<?php elseif($item['state'] == 3): ?>
						<span class="fly-jing">热门</span>
					<?php elseif($item['state'] == 0): ?>
						<span class="fly-jing">普通</span>
					<?php endif; ?>
						<span class="fly-jing"></span>
						<a href="<?php echo url('home/index/info',['postid'=>$item['id']]); ?>" class="jie-title"> <?php echo $item['title']; ?></a>
						<i><?php echo $item['createtime']; ?></i>
						<em class="layui-hide-xs">
						 <?php echo $item['visit_count']; ?>
						阅/<?php echo $item['comment_count']; ?>答</em>
				</li>
				<?php endforeach; ?>
	          </ul>
	          <div id="LAY_page"></div>
	        </div>
	        <div class="layui-tab-item">
	          <ul class="mine-view jie-row">
	            <li>
	              <a class="jie-title" href="../jie/detail.html" target="_blank">基于 layui 的极简社区页面模版</a>
	              <i>收藏于23小时前</i>  </li>
	          </ul>
	          <div id="LAY_page1"></div>
	        </div>
	      </div>
	    </div>
</div>
		<!-- 引用尾部 -->
		<div class="fly-footer">
  <p>2017 &copy; <a href="http://www.layui.com/" target="_blank">Fly技术社区</a></p>
</div>
	</body>
</html>
